Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then ¬ Centerwindow wdName,3¬else if objValue="Close" then ¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent
Result: i4_Text
ItemType: PUSH
Rect: 148,52,228,72
AutoSize: FALSE
Name: OK
DefaultItem: TRUE
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬get wsGet(wdID,"TheCharacter","Text")¬if it < 1 or it > 255 then¬ get windowScript("Stop Alert","The character must be between 1 and 255")¬else¬ wsSend "Other Separator","0","Close"¬end if¬--end mouseUp